<template>
	<view id="myview">
		这是一个组件
		这是test组件{{num}}
		父组件传递的{{title}}
	</view>

</template>

<script>
	export default {
		name: "test",
		data(){
			return{
				num:3,
				intId:null
			};
		},
		//属性
		props: ['title'],
		beforeCreate() {
			console.log('组件初始化')
		}
		,created() {
			console.log('组件created')
		},
		beforeMount() {
			console.log('组件beforeMount')
		},
		mounted() {
			console.log('组件beforemounted')
		},
		destroyed() {
			console.log('组件destroyed')
		},
		methods: {

		}
	}
</script>

<style>

</style>
